<script setup lang="ts">
import { computed } from 'vue'
import { time2str, TimeConst } from '../measure/time-util'

const props = defineProps({
  value: {
    type: Number,
    default: TimeConst.NONE
  },
  offset: {
    type: Number,
    default: 0
  }
})

const text = computed(() => time2str(props.value, TimeConst.NONE, props.offset))
</script>
<template>
  <div class="time-label">
    {{ text }}
  </div>
</template>
